// mysql封装请求
import dbConfig from '../config/sql-server'
function request (sql,arr=[]) {
  return new Promise((resolve,reject) => {
    dbConfig(sql,arr,(err,data) => {
      if (data) {
        resolve(data)
      } else {
        reject(err)
      }
    })
  })
}

export default request